package com.lyc.day1103.demo03;

import java.util.function.Consumer;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/11/3 21:20
 * @description：
 * @modified By：
 * @version:
 */
public class TestConsumer {
    public static void main(String[] args) {
        Consumer<Double> c=a->{
            System.out.println("拉屎用了:"+a+"分钟");
        };
        fun(c,30.0);
    }
    public static void fun(Consumer<Double> consumer,Double man){
        consumer.accept(man);
    }
}